package com.ndp.fb.walle.model.bo.ectemplate;

import com.ndp.fb.rdb.model.EcTemplate;
import com.ndp.fb.rdb.model.ectemplate.EcProductLogo;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;
import java.util.List;
import java.util.Set;

/**
 * Created by sisi.chen on 2016/7/13.
 */
@Setter
@Getter
@NoArgsConstructor
public class EcProductLogoResult implements Comparable<EcProductLogoResult>,Serializable{
    private Long productId;
    private String productName;
    private Long relativeTime;
    //按颜色 样式组分组
   // private Map<Long, Map<Integer, Map<String, EcProductLogo>>> colorGroups;
    private List<ColorGroup> colorGroups;

    /**
     * 站点支持的样式组
     */
    private Set<Integer> styleGroups;

    /**
     *
     */
    private List<EcTemplate> templates;

    @Override
    public int compareTo(EcProductLogoResult o) {
        return -1 * Long.compare(this.relativeTime, o.getRelativeTime()) ;
    }
}
